package jeye.events;

import java.awt.image.BufferedImage;

public class MotionDetectionEvent {

	private BufferedImage frameImage;
	
	private boolean motionDetected = false;
	
	private long timestamp;
	
	private int framerate;
	
	private String eventUUID;
	
	private Long id;
	
	public MotionDetectionEvent(String eventUUID) {
		this.eventUUID = eventUUID;
	}

	public BufferedImage getFrameImage() {
		return frameImage;
	}

	public void setFrameImage(BufferedImage frameImage) {
		this.frameImage = frameImage;
	}

	public boolean isMotionDetected() {
		return motionDetected;
	}

	public void setMotionDetected(boolean motionDetected) {
		this.motionDetected = motionDetected;
	}

	public long getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}

	public String getEventUUID() {
		return eventUUID;
	}

	public int getFramerate() {
		return framerate;
	}

	public void setFramerate(int framerate) {
		this.framerate = framerate;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer();
		
		sb.append("MotionDetectionEvent[")
		.append("id=").append(id).append(", ")
		.append("motionDetected=").append(motionDetected).append(", ")
		.append("framerate=").append(framerate).append(", ")
		.append("timestamp=").append(timestamp).append(", ")
		.append("eventUUID=").append(eventUUID)
		.append("]");
		
		return sb.toString();
	}

}
